<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class BaseUser extends Model
{
    protected $table = 'base_user';//
    
    protected $appends = ['gender_txt'];
    
    /**
     * @return mixed
     */
    public function getGenderTxtAttribute(){
    	if($this->gender == 2){
    		return '女';
    	}elseif($this->gender == 1){
    		return '男';
    	}else{
    		return '未知';
    	}
    } 
}
